def fib1(num):
    results = [0, 1]
    for i in range(num):
        result = results[0] + results[1]
        results[0] = results[1]
        results[1] = result
    return results[1]


def fib2(num):
    results = [0, 1]
    i = 0
    while i < num:
        result = results[0] + results[1]
        results[0] = results[1]
        results[1] = result
        i = i + 1
    return results[1]


if __name__ == '__main__':
    print(fib1(100))
    print(fib2(100))